const sequelize = require("../db");
const { DataTypes } = require("sequelize");

const Blogtype = sequelize.define("Blogtype", {
    name: {
        type: DataTypes.STRING,
        allowNull: false
    },
    articleCount: {
        type: DataTypes.INTEGER,
        allowNull: false
    },
    order: {
        type: DataTypes.INTEGER,
        allowNull: false
    }
}, {
    freezeTableName: true,
    createdAt: false,
    updatedAt: false
});

module.exports = Blogtype;
